package com.ruoyi.pims.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品库存对象 inventory
 * 
 * @author ruoyi
 * @date 2025-06-17
 */
public class Inventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存ID */
    private Long inventoryId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** 当前库存数量 */
    @Excel(name = "当前库存数量")
    private Long currentQuantity;

    /** 锁定数量 */
    @Excel(name = "锁定数量")
    private Long lockQuantity;

    /** 库存下限 */
    @Excel(name = "库存下限")
    private Long minQuantity;

    /** 库存上限 */
    @Excel(name = "库存上限")
    private Long maxQuantity;

    public void setInventoryId(Long inventoryId) 
    {
        this.inventoryId = inventoryId;
    }

    public Long getInventoryId() 
    {
        return inventoryId;
    }

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setCurrentQuantity(Long currentQuantity) 
    {
        this.currentQuantity = currentQuantity;
    }

    public Long getCurrentQuantity() 
    {
        return currentQuantity;
    }

    public void setLockQuantity(Long lockQuantity) 
    {
        this.lockQuantity = lockQuantity;
    }

    public Long getLockQuantity() 
    {
        return lockQuantity;
    }

    public void setMinQuantity(Long minQuantity) 
    {
        this.minQuantity = minQuantity;
    }

    public Long getMinQuantity() 
    {
        return minQuantity;
    }

    public void setMaxQuantity(Long maxQuantity) 
    {
        this.maxQuantity = maxQuantity;
    }

    public Long getMaxQuantity() 
    {
        return maxQuantity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inventoryId", getInventoryId())
            .append("productId", getProductId())
            .append("currentQuantity", getCurrentQuantity())
            .append("lockQuantity", getLockQuantity())
            .append("minQuantity", getMinQuantity())
            .append("maxQuantity", getMaxQuantity())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
